//
//  UIView+IBExtension.m
//  微博app--OC
//
//  Created by xmy on 16/8/31.
//  Copyright © 2016年 xmy. All rights reserved.
//

#import "UIView+IBExtension.h"

@implementation UIView_IBExtension

-(void)setCornerRadius:(CGFloat)cornerRadius{
    
    self.layer.cornerRadius = cornerRadius;
    self.layer.masksToBounds = cornerRadius >0;
}

- (CGFloat)cornerRadius{
    
    return self.layer.cornerRadius;
}

@end
